package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository //仅仅欺骗idea
public interface EmployeeMapper extends BaseMapper<Employee> {
    //登录
    Employee findByUsername(String username);
    //根据Name查询
    List<Employee> findByName(String name);

    //保存
    void save(Employee employee);
    //根据id查询员工
    Employee findById(Long id);
    //修改员工
    void update(Employee employee);
}
